import request from '../utils/request'

export default{
  //登录
  login(member){
    return request({
      url:`/member/login`,
      method:'post',
      data:member
    })
  },

  //根据token获取用户信息
  getUserInfoByToken(){
    return request({
      url:"/member/getUserInfoByToken",
      method: 'get'
    })
  },

  //注册用户
  register(member){
    return request({
      url:"/member/register",
      method:"post",
      data:member
    })
  }


}
